<template>
  <el-config-provider :locale="elementLocales[locale]">
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup>
  import { useSkeletonStore } from '@/stores/skeleton.js'
  import { elementLocales } from '@/i18n'
  const { locale } = useI18n()
  locale.value = localStorage.getItem('locale') || 'zh-cn'
  const skeletonStore = useSkeletonStore()
  onMounted(() => {
    setTimeout(() => {
      skeletonStore.skLoading = false
    }, 600)
  })
</script>
